home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ MSI Options 1.xpl < prev    next >
Text File  |  1999-10-16  |  2KB  |  65 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="System\Software Installation\Windows Installer"
  5. "NAME"="MSI Options - User"
  6. "VERSION"="1.01"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Search for alternative sources (transform)"
  9. "TEXT 2"="Enable browsing for source files"
  10. "TEXT 3"="Enable rollback feature"
  11. "DESCRIPTION 1"="Internet Explorer 5, Office 2000 and Windows 2000 use a new standard for installing applications: the Windows Installer (aka MSI). "
  12. "DESCRIPTION 2"="Be sure not to deactivate option #3: If an installation fails and this option is deactivated, MSI has no chance to restore the system to the previous state."
  13. "DESCRIPTION 3"="If you are sure that you don't need this feature, deactivating this option will preserve a lot of HD space during an installation."
  14. "AUTHOR"="Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="For more information, go to http://www.xteq.com"
  17. "COMMENT 2"="Thanks to Eric Watton [41331922@3web.net] for the deactivated fix!"
  18.  
  19.  
  20. sPathUsr="HKCU\Software\Policies\Microsoft\Windows\Installer\"
  21.  
  22. sV2="TransformsAtSource" 'DW - usr
  23. sV3="DisableBrowse" ' DW - usr
  24. sV4="DisableRollback" 'DW - usr
  25.  
  26. Sub Plugin_Initialize 
  27.  i=RegReadValue(sPathUsr & sV2)
  28.  if i=1 then setuielement 1,true
  29.  
  30.  i=RegReadValue(sPathUsr & sV3)
  31.  if i=0 or IsEmpty(i) then setuielement 2,true
  32.  
  33.  i=RegReadValue(sPathUsr & sV4)
  34.  if i=0 or IsEmpty(i) then setuielement 3,true
  35. End Sub
  36.  
  37. Sub Plugin_CheckData(ElementIndex)
  38. End Sub
  39.  
  40. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  41.  b=GetUIElement(1)
  42.  if b=true then
  43.     Call RegWriteValue(sPathUsr & sV2,1,2)
  44.  else
  45.     Call RegWriteValue(sPathUsr & sV2,0,2)
  46.  end if
  47.  
  48.  b=GetUIElement(2)
  49.  if b=false then
  50.     Call RegWriteValue(sPathUsr & sV3,1,2)
  51.  else
  52.     Call RegWriteValue(sPathUsr & sV3,0,2)
  53.  end if
  54.  
  55.  b=GetUIElement(3)
  56.  if b=false then
  57.     Call RegWriteValue(sPathUsr & sV4,1,2)
  58.  else
  59.     Call RegWriteValue(sPathUsr & sV4,0,2)
  60.  end if
  61. End Sub
  62.  
  63. Sub Plugin_Terminate 
  64. End Sub
  65.